<%--
  Created by IntelliJ IDEA.
  User: 20554
  Date: 2024/10/13
  Time: 09:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>PersonJSP</title>
</head>
<body>
<jsp:useBean id="person" class="com.example.c5chapter5.bean.Person" scope="page"></jsp:useBean>
<div>
    <ul>
        <li>
            姓名：<jsp:setProperty property="name" name="person"/>
        </li>
        <li>
            性别：<jsp:setProperty property="sex" name="person"/>
        </li>
        <li>
            年龄：<jsp:setProperty property="age" name="person"/>
        </li>
        <li>
            已婚：<jsp:setProperty property="married" name="person"/>
        </li>
    </ul>
</div>
</body>
</html>
